(class extends f()<T> implements X.Y<T> {});

(class C extends f()<T> implements X.Y<T> {});